package com.shixi.shixitraining.shixitraining.ui.tabmine.adapter;

import android.content.Context;

import com.shixi.shixitraining.shixitraining.R;
import com.shixi.shixitraining.shixitraining.ui.tabmine.entity.JobPayBean;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseAdapter;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseRecycleHolder;

import java.util.List;

/**
 * Created by shenyan on 2018/7/24.
 */

public class JobPayAdapter extends BaseAdapter<JobPayBean.DataBean>{


    public JobPayAdapter(Context context, List<JobPayBean.DataBean> data) {
        super(context, data);
    }

    @Override
    public void convert(BaseRecycleHolder holder, JobPayBean.DataBean item, int position) {
        holder.setText(R.id.pay_job_title,item.getTitle());
        holder.setText(R.id.pay_job_time,item.getTime());
        holder.setText(R.id.pay_job_price,item.getPrice());
    }

    @Override
    protected int getLayoutId(int viewType) {
        return R.layout.adapter_job_pay;
    }

}
